package com.jinmdz.fmis.api.admin.model.admin;

import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;

/**
 * 前端菜单组件
 *
 * @author LiCongLu
 * @date 2020-03-20 14:51
 */
@ApiModel(value = "前端菜单组件",description = "前端菜单组件")
public class VueMenuComponentItem extends BaseBean {
    /**
     * 路由根路径path
     */
    @ApiModelProperty(value = "路由根路径path",name = "path",position =1 )
    private String path;

    /**
     * 路由菜单名称name
     */
    @ApiModelProperty(value = "路由菜单名称name",name = "name",position =2 )
    private String name;

    /**
     * 路由组件名称component
     */
    @ApiModelProperty(value = "路由组件名称component",name = "component",position =3 )
    private String component;

    /**
     * 路由重定向地址redirect
     */
    @ApiModelProperty(value = "路由重定向地址redirect",name = "redirect",position =4 )
    private String redirect;

    /**
     * 源数据
     */
    @ApiModelProperty(value = "源数据",name = "meta",position =5 )
    private VueMenuComponentMetaItem meta;

    /**
     * 子菜单组件
     */
    @ApiModelProperty(value = "子菜单组件",name = "children",position =6 )
    private ArrayList<VueMenuComponentItem> children;

    public String getPath() {
        return path;
    }

    public VueMenuComponentItem setPath(String path) {
        this.path = path;
        return this;
    }

    public String getName() {
        return name;
    }

    public VueMenuComponentItem setName(String name) {
        this.name = name;
        return this;
    }

    public String getComponent() {
        return component;
    }

    public VueMenuComponentItem setComponent(String component) {
        this.component = component;
        return this;
    }

    public String getRedirect() {
        return redirect;
    }

    public VueMenuComponentItem setRedirect(String redirect) {
        this.redirect = redirect;
        return this;
    }

    public VueMenuComponentMetaItem getMeta() {
        return meta;
    }

    public VueMenuComponentItem setMeta(VueMenuComponentMetaItem meta) {
        this.meta = meta;
        return this;
    }

    public ArrayList<VueMenuComponentItem> getChildren() {
        return children;
    }

    public VueMenuComponentItem setChildren(ArrayList<VueMenuComponentItem> children) {
        this.children = children;
        return this;
    }
}
